toolbarbutton

Purpose

The behave of Toolbarbutton is similar to the button except the appearance is different. The button component uses HTML BUTTON tag, while the toolbarbutton component uses HTML DIV tag.A toolbarbutton could be placed outside a toolbar. However toolbarbuttons change their appearance if they are placed inside a toolbar.

Examples

<z:window title="toolbar demo" border="normal" width="300px">
    <z:caption>
        <z:toolbarbutton label="button3" image="/img/computer.png"/>
        <z:space/>
        <z:toolbarbutton label="button4" image="/img/computer.png" dir="reverse"/>
    </z:caption>
    <z:toolbar>
        <z:toolbarbutton label="button1" image="/img/computer.png"/>
        <z:space/>
        <z:toolbarbutton label="button2" image="/img/computer.png"/>
    </z:toolbar>
    <z:hbox>
        <z:toolbarbutton label="button5" image="/img/computer.png" orient="vertical"/>
        <z:space/>
        <z:toolbarbutton label="button6" image="/img/computer.png" orient="vertical" dir="reverse"/>
    </z:hbox>
</z:window>

Description

Attributes

ZK Official Reference

Component Reference

Show toolbarbutton Component Reference

Java API

Show toolbarbutton Java API